You are on page 1of 6

AS2

ActionScript 3.0 AS3 Migration


www.actionscriptcheatsheet.com AS2 AS3
AS2 AS3
info@seantheflashguy.com Compiler Directives
Global properties #endinitclip Removed
_accProps flash.accessibility.AccessibilityProperties #include Removed
AS2 AS3 #initclip Removed
_focusrect flash.display.InteractiveObject.focusRect
Global functions _global Removed
_highquality flash.display.Stage.quality
Constants
asfunction flash.text.TextField dispatches event: link
false false
call() Removed _level Removed
NaN NaN
chr() Removed maxscroll flash.text.TextField
AS2 _parent
AS2
flash.display.DisplayObject.parent
newline Removed
clearInterval() flash.utils.clearInterval()
null null
clearTimeout() flash.utils.clearTimeout() _quality flash.display.Stage.quality
undefined undefined
duplicateMovieClip() flash.display.MovieClip.MovieClip() _root flash.display.DisplayObject.stage
eval() Removed scroll flash.text.TextField Operators
fscommand() flash.system.fscommand() _soundbuftime flash.media.SoundMixer.bufferTime Removed
add
getProperty() Removed this this eq Removed
getTimer() flash.utils.getTimer() gt Removed
getURL() flash.net.navigateToURL() AS2 AS3 ge Removed
getVersion() flash.system.Capabilities.version <> Removed
Array class
gotoAndPlay() flash.display.MovieClip.gotoAndPlay() instanceof is
CASEINSENSITIVE Constant Array.CASEINSENSITIVE lt Removed
gotoAndStop() flash.display.MovieClip.gotoAndStop()
DESCENDING Constant Array.DESCENDING le Removed
ifFrameLoaded() flash.display.MovieClip.framesLoaded
length Property Array.length and Removed
int() int() Removed
NUMERIC Constant Array.NUMERIC not
length() String.length or Removed
RETURNINDEXEDARRAY:Cnst Array.RETURNINDEXEDARRAY
loadMovie() flash.display.Loader ne Removed
UNIQUESORT Constant Array.UNIQUESORT
loadMovieNum() flash.display.Loader
AS2 Array Constructor AS2 Array.Array() Statements
loadVariables() flash.net.URLLoader
push() Method Array.push() delete delete
loadVariablesNum() flash.net.URLLoader
sort() Method Array.sort() import import
mbchr() String.fromCharCode() Removed
sortOn() Method Array.sortOn() intrinsic
mblength() String.length private private
splice() Method Array.splice()
mbord() String.charCodeAt() set variable Removed
unshift() Method Array.unshift()
mbsubstring() String.substr() super super
nextFrame() flash.display.MovieClip.nextFrame()
AS2 AS3 arguments class
nextScene() flash.display.MovieClip.nextScene()
caller Property Removed
on() flash.events.EventDispatcher BitmapData class flash.display.BitmapData
onClipEvent() flash.events.EventDispatcher
height Property[read-only] flash.display.BitmapData.height
ord() String
rectangle Property[read-only] flash.display.BitmapData.rect
parseInt() parseInt()
width Property[read-only] flash.display.BitmapData.width
play() flash.display.MovieClip.play()
copyChannel() Method flash.display.BitmapData.copyChannel()
prevFrame() flash.display.MovieClip.prevFrame()
draw() Method flash.display.BitmapData.draw()
prevScene() flash.display.MovieClip.prevScene()
fillRect() Method flash.display.BitmapData.fillRect()
print() flash.printing.PrintJob
floodFill() Method flash.display.BitmapData.floodFill()
printAsBitmap() flash.printing.PrintJob
getColorBoundsRect() Method flash.display.BitmapData.getColorBoundsRect()
printAsBitmapNum() flash.printing.PrintJob
getPixel() Method flash.display.BitmapData.getPixel()
printNum() flash.printing.PrintJob
getPixel32() Method flash.display.BitmapData.getPixel32()
random() Math.random()
hitTest() Method flash.display.BitmapData.hitTest()
removeMovieClip() Removed
loadBitmap() Method Removed
setInterval() flash.utils.setInterval()
merge() Method flash.display.BitmapData.merge()
setProperty() Removed
noise() Method flash.display.BitmapData.noise()
setTimeout() flash.utils.setTimeout()
perlinNoise() Method flash.display.BitmapData.perlinNoise()
showRedrawRegions() flash.profiler.showRedrawRegions()
pixelDissolve() Method flash.display.BitmapData.pixelDissolve()
startDrag() flash.display.Sprite.startDrag()
scroll() Method flash.display.BitmapData.scroll()
stop() flash.display.MovieClip.stop()
setPixel() Method flash.display.BitmapData.setPixel()
stopAllSounds() flash.media.SoundMixer.stopAll()
setPixel32() Method flash.display.BitmapData.setPixel32()
stopDrag() flash.display.Sprite.stopDrag()
threshold() Method flash.display.BitmapData.threshold()
substring() String.substring()
targetPath() Removed BlurFilter class
tellTarget() Removed quality Property flash.filters.BlurFilter.quality
toggleHighQuality() flash.display.Stage.quality
trace() trace() Accessibility class flash.accessibility.Accessibility
unloadMovie() flash.display.Loader.unload() isActive() flash.accessibility.Accessibility.active
unloadMovieNum() flash.display.Loader.unload() updateProperties() flash.accessibility.Accessibility.updateProperties()
updateAfterEvent() flash.events.TimerEvent.updateAfterEvent()
AsBroadcaster class flash.events.EventDispatcher
_listeners Property[read-only] flash.events.EventDispatcher.willTrigger()
Color class flash.geom.ColorTransform addListener() Method flash.events.EventDispatcher.addEventListener()
Color Constructor flash.geom.ColorTransform.ColorTransform() broadcastMessage() Method flash.events.EventDispatcher.dispatchEvent()
getRGB() Method flash.geom.ColorTransform.color initialize() Method Removed
getTransform() Method Removed removeListener() Method flash.events.EventDispatcher.removeEventListener()
setRGB() Method flash.geom.ColorTransform.color
setTransform() Method Removed capabilities class flash.system.Capabilities
Date class Date
ConvolutionFilter class getUTCYear() Method Date.getUTCFullYear()
getYear() Method Date.getFullYear()
clone() Method flash.filters.ConvolutionFilter.clone()
setYear() Method Date.setFullYear()
AS3 Migration AS2 AS3
Camera class flash.media.Camera
activityLevel Property[read-only] flash.media.Camera.activityLevel
AS2 AS3 bandwidth Property[read-only] flash.media.Camera.bandwidth
Button class flash.display.SimpleButton currentFps Property[read-only] flash.media.Camera.currentFPS
_alpha Property flash.display.DisplayObject.alpha fps Property[read-only] flash.media.Camera.fps
blendMode Property flash.display.DisplayObject.blendMode height Property[read-only] flash.media.Camera.height
cacheAsBitmap Property flash.display.DisplayObject.cacheAsBitmap index Property[read-only] flash.media.Camera.index
enabled Property flash.display.SimpleButton.enabled motionLevel Property[read-only] flash.media.Camera.motionLevel
filters Property flash.display.DisplayObject.filters motionTimeOut Property[read-only] flash.media.Camera.motionTimeout
_focusrect Property flash.display.InteractiveObject.focusRect muted Property[read-only] flash.media.Camera.muted
_height Property flash.display.DisplayObject.height name Property[read-only] flash.media.Camera.name
_highquality Property Removed names Property[read-only] flash.media.Camera.names
_name Property flash.display.DisplayObject.name quality Property[read-only] flash.media.Camera.quality
_parent Property flash.display.DisplayObject.parent width Property[read-only] flash.media.Camera.width
_quality Property Removed get() Method flash.media.Camera.getCamera()
_rotation Property flash.display.DisplayObject.rotation onActivity() EventHandler flash.events.ActivityEvent.ACTIVITY
scale9Grid Property flash.display.DisplayObject.scale9Grid onStatus() EventHandler flash.media.Camera dispatches event: status
_soundbuftime Property flash.media.SoundMixer.bufferTime setMode() Method flash.media.Camera.setMode()
tabEnabled Property flash.display.InteractiveObject.tabEnabled setMotionLevel() Method flash.media.Camera.setMotionLevel()
tabIndex Property flash.display.InteractiveObject.tabIndex setQuality() Method flash.media.Camera.setQuality()
_target Property[read-only] Removed
trackAsMenu Property flash.display.SimpleButton.trackAsMenu ContextMenu class flash.ui.ContextMenu
_url Property[read-only] Removed builtInItems Property flash.ui.ContextMenu.builtInItems
useHandCursor Property flash.display.SimpleButton.useHandCursor customItems Property flash.ui.ContextMenu.customItems
_visible Property flash.display.DisplayObject.visible ContextMenu Constructor flash.ui.ContextMenu.ContextMenu()
_width Property flash.display.DisplayObject.width copy() Method flash.ui.ContextMenu.clone()
_x Property flash.display.DisplayObject.x hideBuiltInItems() Method flash.ui.ContextMenu.hideBuiltInItems()
_xmouse Property[read-only] flash.display.DisplayObject.mouseX onSelect() EventHandler flash.ui.ContextMenu dispatches event: menuSelect
_xscale Property flash.display.DisplayObject.scaleX
FileReference class flash.net.FileReference
_y Property flash.display.DisplayObject.y
postData Property flash.net.URLRequest.data
_ymouse Property[read-only] flash.display.DisplayObject.mouseY
size Property[read-only] flash.net.FileReference.size
_yscale Property flash.display.DisplayObject.scaleY
addListener() Method flash.events.EventDispatcher.addEventListener()
getDepth() Method flash.display.DisplayObjectContainer.getChildIndex()
browse() Method flash.net.FileReference.browse()
onDragOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut
download() Method flash.net.FileReference.download()
onDragOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver
removeListener() Method flash.events.EventDispatcher.removeEventListener()
onKeyDown() EventHandler flash.display.InteractiveObject dispatches event: keyDown
upload() Method flash.net.FileReference.upload()
onKeyUp() EventHandler flash.display.InteractiveObject dispatches event: keyUp
onCancel Listener flash.net.FileReference dispatches event: cancel
onKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOut
ActionScript 3.0

onComplete Listener flash.net.FileReference dispatches event: complete


www.actionscriptcheatsheet.com

onPress() EventHandler flash.display.InteractiveObject dispatches event: mouseDown


onHTTPError Listener flash.net.FileReference dispatches event: httpStatus
onRelease() EventHandler flash.display.InteractiveObject dispatches event: mouseUp
onIOError Listener flash.net.FileReference dispatches event: ioError
onReleaseOutside() EventHandler flash.display.InteractiveObject dispatches event: mouseUp
onOpen Listener flash.net.FileReference dispatches event: open
onRollOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut
onProgress Listener flash.net.FileReference dispatches event: progress
onRollOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver
onSecurityError Listener flash.net.FileReference dispatches event: securityError
onSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusIn
onSelect Listener flash.net.FileReference dispatches event: select
GlowFilter class flash.filters.GlowFilter onUploadCompleteData flash.net.FileReference dispatches event: complete
color Property flash.filters.GlowFilter.color
info@seantheflashguy.com

quality Property flash.filters.GlowFilter.quality FileReferenceList class flash.net.FileReferenceList


GlowFilter Constructor flash.filters.GlowFilter.GlowFilter() addListener() Method flash.events.EventDispatcher.addEventListener()
clone() Method flash.filters.GlowFilter.clone() browse() Method flash.net.FileReferenceList.browse()
removeListener() Method flash.events.EventDispatcher.removeEventListener()
GradientBevelFilter class flash.filters.GradientBevelFilter
onCancel Listener flash.net.FileReferenceList dispatches event: cancel
quality Property flash.filters.GradientBevelFilter.quality
onSelect Listener flash.net.FileReferenceList dispatches event: select
clone() Method flash.filters.GradientBevelFilter.clone()

GradientGlowFilter class flash.filters.GradientGlowFilter Error class Error


quality Property flash.filters.GradientGlowFilter.quality ExternalInterface class flash.external.ExternalInterface
GradientGlowFilter Constructor flash.filters.GradientGlowFilter.GradientGlowFilter() addCallback() Method flash.external.ExternalInterface.addCallback()
clone() Method flash.filters.GradientGlowFilter.clone() call() Method flash.external.ExternalInterface.call()
AS3 Migration AS2 AS3
IME class flash.system.IME
AS2 AS3
ALPHANUMERIC_FULL Constant flash.system.IMEConversionMode.ALPHANUMERIC_FULL
ALPHANUMERIC_HALF Constant flash.system.IMEConversionMode.ALPHANUMERIC_HALF Key class flash.ui.Keyboard
CHINESE Constant flash.system.IMEConversionMode.CHINESE BACKSPACE Constant flash.ui.Keyboard.BACKSPACE
JAPANESE_HIRAGANA Constant flash.system.IMEConversionMode.JAPANESE_HIRAGANA CAPSLOCK Constant flash.ui.Keyboard.CAPS_LOCK
JAPANESE_KATAKANA_FULL Constant flash.system.IMEConversionMode.JAPANESE_KATAKANA_FULL CONTROL Constant flash.ui.Keyboard.CONTROL
JAPANESE_KATAKANA_HALF Constant flash.system.IMEConversionMode.JAPANESE_KATAKANA_HALF DELETEKEY Constant flash.ui.Keyboard.DELETE
KOREAN Constant flash.system.IMEConversionMode.KOREAN DOWN Constant flash.ui.Keyboard.DOWN
UNKNOWN Constant flash.system.IMEConversionMode.UNKNOWN END Constant flash.ui.Keyboard.END
addListener() Method flash.events.EventDispatcher.addEventListener() ENTER Constant flash.ui.Keyboard.ENTER
getConversionMode() Method flash.system.IME.conversionMode ESCAPE Constant flash.ui.Keyboard.ESCAPE
getEnabled() Method flash.system.IME.enabled HOME Constant flash.ui.Keyboard.HOME
removeListener() Method flash.events.EventDispatcher.removeEventListener() INSERT Constant flash.ui.Keyboard.INSERT
setConversionMode() Method flash.system.IME.conversionMode LEFT Constant flash.ui.Keyboard.LEFT
setEnabled() Method flash.system.IME.enabled _listeners Property[read-only] flash.events.EventDispatcher.willTrigger()
onIMEComposition Listener flash.system.IME dispatches event: imeComposition PGDN Constant flash.ui.Keyboard.PAGE_DOWN
PGUP Constant flash.ui.Keyboard.PAGE_UP
DisplacementMapFilter class flash.filters.DisplacementMapFilter RIGHT Constant flash.ui.Keyboard.RIGHT
color Property flash.filters.DisplacementMapFilter.color SHIFT Constant flash.ui.Keyboard.SHIFT
componentX Property flash.filters.DisplacementMapFilter.componentX SPACE Constant flash.ui.Keyboard.SPACE
componentY Property flash.filters.DisplacementMapFilter.componentY TAB Constant flash.ui.Keyboard.TAB
DisplacementMapFilter Constructor flash.filters.DisplacementMapFilter.DisplacementMapFilter() UP Constant flash.ui.Keyboard.UP
clone() Method flash.filters.DisplacementMapFilter.clone() addListener() Method flash.events.EventDispatcher.addEventListener()
LocalConnection class flash.net.LocalConnection getAscii() Method flash.events.KeyboardEvent.charCode
LocalConnection Constructor flash.net.LocalConnection.LocalConnection() getCode() Method flash.events.KeyboardEvent.keyCode
allowDomain() EventHandler flash.net.LocalConnection.allowDomain() isAccessible() Method flash.ui.Keyboard.isAccessible()
allowInsecureDomain() EventHandler flash.net.LocalConnection.allowInsecureDomain() isDown() Method Removed
close() Method flash.net.LocalConnection.close() isToggled() Method Removed
connect() Method flash.net.LocalConnection.connect() removeListener() Method flash.events.EventDispatcher.removeEventListener()
domain() Method flash.net.LocalConnection.domain onKeyDown Listener flash.display.InteractiveObject dispatches event: keyDown
onStatus() EventHandler flash.net.LocalConnection dispatches event: status onKeyUp Listener flash.display.InteractiveObject dispatches event: keyUp
send() Method flash.net.LocalConnection.send()
flash.media.Microphone Mouse class flash.ui.Mouse
Microphone class flash.events.EventDispatcher.addEventListener()
addListener() Method
index Property[read-only] flash.media.Microphone.index
hide() Method flash.ui.Mouse.hide()
rate Property[read-only] flash.media.Microphone.rate
flash.media.Microphone.silenceTimeout removeListener() Method flash.events.EventDispatcher.removeEventListener()
silenceTimeOut Property[read-only]
get() Method flash.media.Microphone.getMicrophone() show() Method flash.ui.Mouse.show()
onActivity() EventHandler flash.media.Microphone dispatches event: activity onMouseDown Listener flash.display.InteractiveObject dispatches event: mouseDown
onStatus() EventHandler flash.media.Microphone dispatches event: status onMouseMove Listener flash.display.InteractiveObject dispatches event: mouseMove
ActionScript 3.0
www.actionscriptcheatsheet.com

setGain() Method flash.media.Microphone.gain onMouseUp Listener flash.display.InteractiveObject dispatches event: mouseUp


setRate() Method flash.media.Microphone.rate onMouseWheel Listener flash.display.InteractiveObject dispatches event: mouseWheel
setSilenceLevel() Method flash.media.Microphone.setSilenceLevel()
setUseEchoSuppression() Method flash.media.Microphone.setUseEchoSuppression()
NetConnection class flash.net.NetConnection
LoadVars class flash.net.URLLoader NetConnection Constructor flash.net.NetConnection.NetConnection()
contentType Property flash.net.URLRequest.contentType connect() Constructor flash.net.NetConnection.connect()
loaded Property Removed
LoadVars Constructor flash.net.URLLoader.URLLoader() NetStream class flash.net.NetStream
info@seantheflashguy.com

addRequestHeader() Method flash.net.URLRequestHeader bytesLoaded Property[read-only] flash.net.NetStream.bytesLoaded


decode() Method flash.net.URLVariables.decode() bytesTotal Property[read-only] flash.net.NetStream.bytesTotal
getBytesLoaded() Method flash.net.URLLoader.bytesLoaded currentFps Property[read-only] flash.net.NetStream.currentFPS
getBytesTotal() Method flash.net.URLLoader.bytesTotal onStatus() EventHandler flash.net.NetStream dispatches event: netStatus
load() Method flash.net.URLLoader.load() pause() Method flash.net.NetStream.pause()
onData() EventHandler flash.net.URLLoader dispatches event: complete play() Method flash.net.NetStream.play()
onHTTPStatus() EventHandler flash.net.URLLoader dispatches event: httpStatus setBufferTime() Method flash.net.NetStream.bufferTime
onLoad() EventHandler flash.net.URLLoader dispatches event: complete
Number class Number
send() Method flash.net.sendToURL()
Number Constructor Number.Number()
sendAndLoad() Method flash.net.sendToURL()
toString() Method Removed
MovieClip class flash.display.MovieClip AS2 AS3
AS3 Migration _alpha Property
blendMode Property
flash.display.DisplayObject.alpha
flash.display.DisplayObject.blendMode
MovieClip class flash.display.MovieClip
loadMovie() Method flash.display.Loader.load()
cacheAsBitmap Property flash.display.DisplayObject.cacheAsBitmap loadVariables() Method flash.net.URLLoader
_currentframe Property[read-only] flash.display.MovieClip.currentFrame localToGlobal() Method flash.display.DisplayObject.localToGlobal()
_droptarget Property[read-only] flash.display.Sprite.dropTarget moveTo() Method flash.display.Graphics.moveTo()
filters Property flash.display.DisplayObject.filters nextFrame() Method flash.display.MovieClip.nextFrame()
focusEnabled Property Removed onData() EventHandler flash.display.LoaderInfo dispatches event: complete
_focusrect Property flash.display.InteractiveObject.focusRect onDragOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut
_framesloaded Property[read-only] flash.display.MovieClip.framesLoaded onDragOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver
_height Property flash.display.DisplayObject.height onEnterFrame() EventHandler flash.display.DisplayObject dispatches event: enterFrame
_highquality Property Removed onKeyDown() EventHandler flash.display.InteractiveObject dispatches event: keyDown
hitArea Property flash.display.Sprite.hitArea onKeyUp() EventHandler flash.display.InteractiveObject dispatches event: keyUp
_lockroot Property Removed onKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOut
menu Property Removed onLoad() EventHandler flash.display.LoaderInfo dispatches event: complete
_name Property flash.display.DisplayObject.name onMouseDown() EventHandler flash.display.InteractiveObject dispatches event: mouseDown
opaqueBackground Property flash.display.DisplayObject.opaqueBackground onMouseMove() EventHandler flash.display.InteractiveObject dispatches event: mouseMove
_parent Property flash.display.DisplayObject.parent onMouseUp() EventHandler flash.display.InteractiveObject dispatches event: mouseUp
_quality Property flash.display.Stage.quality onPress() EventHandler flash.display.InteractiveObject dispatches event: mouseDown
_rotation Property flash.display.DisplayObject.rotation onRelease() EventHandler flash.display.InteractiveObject dispatches event: mouseUp
scale9Grid Property flash.display.DisplayObject.scale9Grid onReleaseOutside() EventHandler flash.display.InteractiveObject dispatches event: mouseUp
scrollRect Property flash.display.DisplayObject.scrollRect onRollOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut
_soundbuftime Property flash.media.SoundMixer.bufferTime onRollOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver
tabChildren Property flash.display.DisplayObjectContainer.tabChildren onSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusIn
tabEnabled Property flash.display.InteractiveObject.tabEnabled onUnload() EventHandler flash.display.LoaderInfo dispatches event: unload
tabIndex Property flash.display.InteractiveObject.tabIndex play() Method flash.display.MovieClip.play()
_target Property[read-only] Removed prevFrame() Method flash.display.MovieClip.prevFrame()
_totalframes Property[read-only] flash.display.MovieClip.totalFrames removeMovieClip() Method flash.display.DisplayObjectContainer.removeChild()
trackAsMenu Property flash.display.MovieClip.trackAsMenu setMask() Method flash.display.DisplayObject.mask
transform Property flash.display.DisplayObject.transform startDrag() Method flash.display.Sprite.startDrag()
_url Property[read-only] flash.display.Loader.contentLoaderInfo stop() Method flash.display.MovieClip.stop()
useHandCursor Property flash.display.Sprite.useHandCursor stopDrag() Method flash.display.Sprite.stopDrag()
_visible Property flash.display.DisplayObject.visible swapDepths() Method Removed
_width Property flash.display.DisplayObject.width unloadMovie() Method flash.display.Loader.unload()
_x Property flash.display.DisplayObject.x
_xmouse Property[read-only] flash.display.DisplayObject.mouseX Sound class flash.media.Sound
_xscale Property flash.display.DisplayObject.scaleX checkPolicyFile flash.media.SoundChannel.stop()
_y Property flash.display.DisplayObject.y duration Property[read-only] flash.media.Sound.length
_ymouse Property[read-only] flash.display.DisplayObject.mouseY id3 Property[read-only] flash.media.Sound.id3
_yscale Property flash.display.DisplayObject.scaleY position Property[read-only] flash.media.SoundChannel.position
attachAudio() Method Removed attachSound() Method Removed
attachBitmap() Method Removed getBytesLoaded() Method flash.media.Sound.bytesLoaded
attachMovie() Method Removed getBytesTotal() Method flash.media.Sound.bytesTotal
beginBitmapFill() Method flash.display.Graphics.beginBitmapFill() getPan() Method flash.media.SoundTransform.pan
beginFill() Method flash.display.Graphics.beginFill() getTransform() Method flash.media.SoundMixer.soundTransform
beginGradientFill() Method flash.display.Graphics.beginGradientFill() flash.media.SoundTransform.volume
ActionScript 3.0

getVolume() Method
www.actionscriptcheatsheet.com

clear() Method flash.display.Graphics.clear() loadSound() Method flash.media.Sound.load()


createEmptyMovieClip() Method Removed onID3() EventHandler flash.media.Sound dispatches event: id3
createTextField() Method Removed onLoad() EventHandler flash.media.Sound dispatches event: complete
curveTo() Method flash.display.Graphics.curveTo() onSoundComplete() EventHandler flash.media.SoundChannel dispatches event: soundComplete
duplicateMovieClip() Method Removed setPan() Method flash.media.SoundTransform.pan
endFill() Method flash.display.Graphics.endFill() setTransform() Method flash.media.SoundMixer.soundTransform
getBounds() Method flash.display.DisplayObject.getBounds() setVolume() Method flash.media.SoundChannel
getBytesLoaded() Method flash.net.URLLoader.bytesLoaded start() Method flash.media.Sound.play()
getBytesTotal() Method flash.net.URLLoader.bytesTotal stop() Method flash.media.SoundChannel.stop()
info@seantheflashguy.com

getDepth() Method flash.display.DisplayObjectContainer.getChildIndex()


getInstanceAtDepth() Method flash.display.DisplayObjectContainer.getChildAt()
MovieClipLoader class flash.display.Loader
getNextHighestDepth() Method flash.display.DisplayObjectContainer.addChild() MovieClipLoader Constructor flash.display.Loader.Loader()
getRect() Method flash.display.DisplayObject.getRect() addListener() Method flash.events.EventDispatcher.addEventListener()
getSWFVersion() Method flash.display.LoaderInfo.swfVersion getProgress() Method flash.display.LoaderInfo dispatches event: progress
getTextSnapshot() Method flash.display.DisplayObjectContainer.textSnapshot loadClip() Method flash.display.Loader.load()
getURL() Method flash.net.navigateToURL() removeListener() Method flash.events.EventDispatcher.removeEventListener()
globalToLocal() Method flash.display.DisplayObject.globalToLocal() unloadClip() Method flash.display.Loader.unload()
gotoAndStop() Method flash.display.MovieClip.gotoAndStop() onLoadComplete Listener flash.display.LoaderInfo dispatches event: complete
hitTest() Method flash.display.DisplayObject.hitTestObject() onLoadError Listener flash.display.LoaderInfo dispatches event: ioError
lineGradientStyle() Method flash.display.Graphics.lineGradientStyle() onLoadInit Listener flash.display.LoaderInfo dispatches event: init
lineStyle() Method flash.display.Graphics.lineStyle() onLoadProgress Listener flash.display.LoaderInfo dispatches event: progress
lineTo() Method flash.display.Graphics.lineTo() onLoadStart Listener flash.display.LoaderInfo dispatches event: open
ActionScript 3.0 AS3 Migration
www.actionscriptcheatsheet.com
info@seantheflashguy.com

AS2 AS3 AS2 AS3


Object class Object
String class String __proto__ Property Removed
concat() Method String.concat()
__resolve Property flash.utils.Proxy
StyleSheet class flash.text.StyleSheet addProperty() Method Removed
StyleSheet Constructor flash.text.StyleSheet.StyleSheet() registerClass() Method Removed
clear() Method flash.text.StyleSheet.clear() unwatch() Method Removed
getStyle() Method flash.text.StyleSheet.getStyle() watch() Method Removed
getStyleNames() Method flash.text.StyleSheet.styleNames
load() Method flash.net.URLLoader.load() PrintJob class flash.printing.PrintJob
onLoad() EventHandler flash.net.URLLoader dispatches event: complete
parseCSS() Method flash.text.StyleSheet.parseCSS() orientation Property[read-only] flash.printing.PrintJob.orientation
setStyle() Method flash.text.StyleSheet.setStyle() pageHeight Property[read-only] flash.printing.PrintJob.pageHeight
transform() Method flash.text.StyleSheet.transform() pageWidth Property[read-only] flash.printing.PrintJob.pageWidth
paperHeight Property[read-only] flash.printing.PrintJob.paperHeight
security class flash.system.Security paperWidth Property[read-only] flash.printing.PrintJob.paperWidth
System class flash.system.System PrintJob Constructor flash.printing.PrintJob.PrintJob()
addPage() Method flash.printing.PrintJob.addPage()
exactSettings Property flash.system.Security.exactSettings
useCodepage Property flash.system.System.useCodePage send() Method flash.printing.PrintJob.send()
onStatus() EventHandler Removed start() Method flash.printing.PrintJob.start()
setClipboard() Method flash.system.System.setClipboard()
showSettings() Method flash.system.Security.showSettings() Rectangle class flash.printing.PrintJob
containsRectangle() Method flash.geom.Rectangle.containsRect()
SharedObject class flash.net.SharedObject
flush() Method flash.net.SharedObject.flush() TextFormat class flash.text.TextFormat
getSize() Method flash.net.SharedObject.size align Property flash.text.TextFormat.align
onStatus() EventHandler flash.net.SharedObject dispatches event: netStatus blockIndent Property flash.text.TextFormat.blockIndent
bold Property flash.text.TextFormat.bold
Stage class flash.display.Stage bullet Property flash.text.TextFormat.bullet
align Property flash.display.Stage.align color Property flash.text.TextFormat.color
height Property flash.display.Stage.stageHeight font Property flash.text.TextFormat.font
scaleMode Property flash.display.Stage.scaleMode indent Property flash.text.TextFormat.indent
showMenu Property flash.display.Stage.showDefaultContextMenu italic Property flash.text.TextFormat.bullet
width Property flash.display.Stage.stageWidth kerning Property flash.text.TextFormat.kerning
addListener() Method flash.events.EventDispatcher.addEventListener() leading Property flash.text.TextFormat.leading
leftMargin Property flash.text.TextFormat.leftMargin
removeListener() Method flash.events.EventDispatcher.removeEventListener()
letterSpacing Property flash.text.TextFormat.letterSpacing
onResize Listener flash.display.Stage dispatches event: resize
rightMargin Property flash.text.TextFormat.rightMargin
size Property flash.text.TextFormat.size
TextSnapshot class flash.text.TextSnapshot underline Property flash.text.TextFormat.underline
findText() Method flash.text.TextSnapshot.findText() url Property flash.text.TextFormat.url
getCount() Method flash.text.TextSnapshot.charCount TextFormat Constructor flash.text.TextFormat.TextFormat()
getSelected() Method flash.text.TextSnapshot.getSelected() getTextExtent() Method Removed
getSelectedText() Method flash.text.TextSnapshot.getSelectedText() flash.media.Video
Video class
getText() Method flash.text.TextSnapshot.getText()
_alpha Property flash.display.DisplayObject.alpha
getTextRunInfo() Method flash.text.TextSnapshot.getTextRunInfo() deblocking Property flash.media.Video.deblocking
hitTestTextNearPos() Method flash.text.TextSnapshot.hitTestTextNearPos() _height Property flash.display.DisplayObject.height
setSelectColor() Method flash.text.TextSnapshot.setSelectColor() height Property[read-only] flash.media.Video.videoHeight
setSelected() Method flash.text.TextSnapshot.setSelected() _name Property flash.display.DisplayObject.name
_parent Property flash.display.DisplayObject.parent
Selection class Removed
_rotation Property flash.display.DisplayObject.rotation
addListener() Method flash.events.EventDispatcher.addEventListener()
getBeginIndex() Method flash.text.TextField.selectionBeginIndex smoothing Property flash.media.Video.smoothing
getCaretIndex() Method flash.text.TextField.caretIndex _visible Property flash.display.DisplayObject.visible
getEndIndex() Method flash.text.TextField.selectionEndIndex _width Property flash.display.DisplayObject.width
getFocus() Method
AS2
flash.display.Stage.focus width Property[read-only] flash.media.Video.videoWidth
removeListener() Method flash.events.EventDispatcher.removeEventListener() _x Property flash.display.DisplayObject.x
setFocus() Method flash.display.Stage.focus _xmouse Property[read-only] flash.display.DisplayObject.mouseX
setSelection() Method flash.text.TextField.setSelection() _xscale Property flash.display.DisplayObject.scaleX
onSetFocus Listener flash.display.InteractiveObject dispatches event: focusIn _y Property flash.display.DisplayObject.y
_ymouse Property[read-only] flash.display.DisplayObject.mouseY
_yscale Property flash.display.DisplayObject.scaleY
attachVideo() Method flash.media.Video.attachNetStream()
AS2 AS3 clear() Method flash.media.Video.clear()
TextRenderer class flash.text.TextRenderer
maxLevel Property flash.text.TextRenderer.maxLevel
setAdvancedAntialiasingTable() Method flash.text.TextRenderer.setAdvancedAntiAliasingTable()
ActionScript 3.0 AS3 Migration
www.actionscriptcheatsheet.com
info@seantheflashguy.com
AS2 AS3
TextField class flash.text.TextField XML class flash.xml.XMLDocument
_alpha Property flash.display.DisplayObject.alpha contentType Property flash.net.URLRequest.contentType
antiAliasType Property flash.text.TextField.antiAliasType docTypeDecl Property flash.xml.XMLDocument.docTypeDecl
autoSize Property flash.text.TextField.autoSize idMap Property flash.xml.XMLDocument.idMap
background Property flash.text.TextField.background ignoreWhite Property flash.xml.XMLDocument.ignoreWhite
backgroundColor Property flash.text.TextField.backgroundColor loaded Property Removed
border Property flash.text.TextField.border status Property Removed
borderColor Property flash.text.TextField.borderColor xmlDecl Property flash.xml.XMLDocument.xmlDecl
bottomScroll Property[read-only] flash.text.TextField.bottomScrollV XML Constructor flash.xml.XMLDocument.XMLDocument()
condenseWhite Property flash.text.TextField.condenseWhite addRequestHeader() Method flash.net.URLRequest.requestHeaders
embedFonts Property flash.text.TextField.embedFonts createElement() Method flash.xml.XMLDocument.createElement()
filters Property flash.display.DisplayObject.filters createTextNode() Method flash.xml.XMLDocument.createTextNode()
gridFitType Property flash.text.TextField.gridFitType getBytesLoaded() Method flash.net.URLLoader.bytesLoaded
_height Property flash.display.DisplayObject.height getBytesTotal() Method flash.net.URLLoader.bytesTotal
_highquality Property flash.display.Stage.quality load() Method Removed
hscroll Property flash.text.TextField.scrollH onData() EventHandler flash.net.URLLoader dispatches event: complete
html Property flash.text.TextField.htmlText onHTTPStatus() EventHandler flash.net.URLLoader dispatches event: httpStatus
htmlText Property flash.text.TextField.htmlText onLoad() EventHandler flash.net.URLLoader dispatches event: complete
length Property[read-only] flash.text.TextField.length parseXML() Method flash.xml.XMLDocument.parseXML()
maxChars Property flash.text.TextField.maxChars send() Method Removed
maxhscroll Property[read-only] flash.text.TextField.maxScrollH sendAndLoad() Method Removed
maxscroll Property[read-only] flash.text.TextField.maxScrollV
menu Property flash.display.InteractiveObject.contextMenu XMLNode class flash.xml.XMLNode
mouseWheelEnabled Property flash.text.TextField.mouseWheelEnabled nodeType Property[read-only] flash.xml.XMLNode.nodeType
multiline Property flash.text.TextField.multiline XMLNode Constructor flash.xml.XMLNode.XMLNode()
_name Property flash.display.DisplayObject.name
_parent Property flash.display.DisplayObject.parent XMLSocket class flash.net.XMLSocket
password Property flash.text.TextField.displayAsPassword XMLSocket Constructor flash.net.XMLSocket.XMLSocket()
_quality Property flash.display.Stage.quality connect() Method flash.net.XMLSocket.connect()
restrict Property flash.text.TextField.restrict onClose() EventHandler flash.net.XMLSocket dispatches event: close
_rotation Property flash.display.DisplayObject.rotation onConnect() EventHandler flash.net.XMLSocket dispatches event: connect
scroll Property flash.text.TextField.scrollV onData() EventHandler flash.net.XMLSocket dispatches event: data
selectable Property flash.text.TextField.selectable onXML() EventHandler Removed
sharpness Property flash.text.TextField.sharpness
_soundbuftime Property flash.media.SoundMixer.bufferTime
styleSheet Property flash.text.TextField.styleSheet
tabEnabled Property flash.display.InteractiveObject.tabEnabled
tabIndex Property flash.display.InteractiveObject.tabIndex
_target Property[read-only] Removed
text Property flash.text.TextField.text
textColor Property flash.text.TextField.textColor
textHeight Property flash.text.TextField.textHeight
textWidth Property flash.text.TextField.textWidth
thickness Property flash.text.TextField.thickness
type Property flash.text.TextField.type
_url Property[read-only] flash.display.LoaderInfo.url
variable Property Removed
_visible Property flash.display.DisplayObject.visible
_width Property flash.display.DisplayObject.width
wordWrap Property flash.text.TextField.wordWrap
_x Property flash.display.DisplayObject.x
_xmouse Property[read-only] flash.display.DisplayObject.mouseX
_xscale Property flash.display.DisplayObject.scaleX
_y Property flash.display.DisplayObject.y
_ymouse Property[read-only] flash.display.DisplayObject.mouseY
_yscale Property flash.display.DisplayObject.scaleY
addListener() Method flash.events.EventDispatcher.addEventListener()
getDepth() Method flash.display.DisplayObjectContainer
getFontList() Method flash.text.Font.enumerateFonts()
getNewTextFormat() Method flash.text.TextField.defaultTextFormat
getTextFormat() Method flash.text.TextField.getTextFormat()
onChanged() EventHandler flash.text.TextField dispatches event: change
onKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOut
onScroller() EventHandler flash.text.TextField dispatches event: scroll
onSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusIn
removeListener() Method flash.events.EventDispatcher.removeEventListener()
removeTextField() Method flash.display.DisplayObjectContainer.removeChild()
replaceSel() Method flash.text.TextField.replaceSelectedText()
replaceText() Method flash.text.TextField.replaceText()
setNewTextFormat() Method flash.text.TextField.defaultTextFormat
setTextFormat() Method flash.text.TextField.setTextFormat()

You might also like